class alg<T extends Comparable<T>>{
    public T findMaxValue(T[] array) {
        T max = array[0];
        for (int i = 0; i < array.length; i++) {
            if (max.compareTo(array[i]) < 0) {
                max = array[i];
            }
            return max;
        }
    }
}
public class Test {

}
